<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="ZH-CN">

<c:choose>
  <c:when test="${student_name }==null">
    <c:redirect url="/LWGL"></c:redirect>
  </c:when>
</c:choose>

<head>
<title>学生申报课题</title>
<meta http-equiv="X-UA-Compatible" content="IE=9" >
<meta name="keywords" content="吉珠,吉林大学,吉林大学珠海学院,吉林大学珠海学院论文管理">
<meta name="content-type" content="text/html" charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="${pageContext.request.contextPath}/pages1/css/bootstrap.css" type="text/css">
<script src="${pageContext.request.contextPath}/pages1/js/jquery-2.1.1.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/pages1/js/bootstrap.js" type="text/javascript"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/jquery-easyui-1.4.1/jquery.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/jquery-easyui-1.4.1/jquery.easyui.min.js"></script>
<link rel="stylesheet" href="<%=request.getContextPath()%>/jquery-easyui-1.4.1/themes/gray/easyui.css" type="text/css"></link>
<link rel="stylesheet" href="<%=request.getContextPath()%>/jquery-easyui-1.4.1/themes/icon.css" type="text/css"></link>
<script type="text/javascript" src="<%=request.getContextPath()%>/jquery-easyui-1.4.1/locale/easyui-lang-zh_CN.js"></script>
<style>
.col-xs-3 {
	padding: 1px;
	height: 587px;
}
.col-xs-9 {
	height: 587px;
}
.container {
	width: 1280px;
}
.xs11 {
	margin-top: 20px;
	margin-left: 30px;
}
#xs12 {
	height: 480px;
	width: 313px;
}
#xs11 {
	height: 140px;
}
#xs10 {
	height: 110px;
}
#xs1 {
	height: 100px;
	width: 80px;
}
body {
	font-size: 12px;
}
ul {
	margin: 0;
	padding: 7px;
}
ul li {
	height: 22px;
	vertical-align: bottom;
}
.actived {
	height: 25px;
	border-top: 3px solid #ff9900;
	;
	border-right: 1px solid #AAC7E9;
	border-left: 1px solid #AAC7E9;
	border-bottom: 1px solid #AAC7E9;
	background: #FFDAB9;
}
.panel-group {
	padding: 1px;
	margin: 1px;
}

</style>
<script type="text/javascript" language="javascript">
function g(o){return document.getElementById(o);}
function hoverli(n){
for(var i=1;i<=19;i++){
{g('tb_'+i).className='';}
g('tb_'+n).className='actived';}
}

function sumbit() {
		var title=document.getElementById("title").value;
		console.info(title);
		if(title==null || title=="")
		{
			$.messager.alert('提示', '请填写论文题目！');
		}
		else
		{
			$.ajax({
				url : '<%=request.getContextPath()%>/xsxt/stuAddDis',
				Type : 'POST',
				contentType: 'application/x-www-form-urlencoded;charset=UTF-8',
				data : $('#thesistitle').serialize(),
				success : function(r) {
					$.messager.alert('提示', r.msg);
					if(r.sign)
						document.getElementById("submit").disabled="disabled";
				},
			});
		}
}
/*  $('#thesistitle').submit(function() {
//            var AjaxURL= "../OrderManagement/AjaxModifyOrderService.aspx";       
            alert($('#formAddHandlingFee').serialize());
                $.ajax({
                    type: "POST",
                    dataType: "html",
                    url: '/LWGL/xsxt/stuAddDis',
                    data: $('#formAddHandlingFee').serialize(),
                    success: function (data) {
                    	$.messager.alert('提示', '提交成功');
                    },
                    error: function(data) {
                        $.messager.alert('提示', '提交失败');
                     }
                });
        }
    );*/


</script>
</head>

<body>
<!--全局框架 开始 conteiner-->
<div class="container">
<!--标题头图片-->
<div class="row">
  <div class="body_top"> <img src="${pageContext.request.contextPath}/pages1/img/head.png" align="center" width="1280px"/> </div>
</div>
<!--全局12栅格 规划全局区域图线 开始 row+ col-->
<div class="row">
<jsp:include page="stu_siderbar.jsp"></jsp:include>

<!--全局框架结束--> 

<!--右侧用户操作模块 占全局9栅格-->
<div class="col-xs-9"style="border:2px solid #25465d">
<div class="row">
  <div class="col-xs-12  xs11" style="margin-bottom:0px; margin-top:5px;"> <strong><font size="3">流程管理》申报课题</font></strong> </div>
</div>
<div class="row">
<div class="col-xs-11  xs11" style="margin-top:5px;">
<div class="panel panel-default">
<div class="panel-heading" align="left"> <a data-toggle="collapse" data-parent="#accordion"  href="#collapseHelp" class="glyphicon glyphicon-chevron-down"> 操作指南 </a> </div>
<div id="collapseHelp" class="panel-collapse collapse">
<div class="panel-body">
学生可以根据实习情况，采用以下3种情况进行论文题目的选取：
<ul>
<li>可以自己拟定题目，然后申报论文题目（该页面内申报）。</li>
<li>论文题目可以由实习单位负责人给学生提供，然后由学生提交申报该论文题目</li>
<li>论文题目由指导教师提供，由学生从指导教师提供的论文题目中选择一个题目进行论文的撰写工作（学生选题页面中完成）。</li>
<ul>
在指导老师审核通过后，将该论文题目作为开题报告的论文题目，论文题目在指导老师审核阶段可以进行修改，当申报的题目在专业负责人审批通过后，将不可以修改。
</div>
</div>
</div>
</div>
</div>
<br>
<form action="${pageContext.request.contextPath}/xsxt/stuAddDis" method="post" name="thesistitle" id="thesistitle">
<div class="row">
  <div class="col-xs-12 xs11">
    <p name=""><b>论文指导老师：&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
      ${stu_tch.teacher_name }</b> </p>
    <p name=""><b>申请论文题目：&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
      <input class="easyui-validatebox" type="text" size="50px" name="thesistitle.thesistitle_name" id="title" required="true"/>
      </b> </p>
    <p name=""><b>申请课题来源：&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
      设计</b> </p>
    <p name=""><b>申请题目理由：&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
      <select style="background:#FFFAF0" name="thesistitle.thesistitle_source">
        <c:forEach var="thesissource" items="${thesissourceList}">
        <option value="${thesissource.thesissource_id}">${thesissource.thesissource_name}</option>
        </c:forEach>
      </select>
      </b> </p>
    <br>
    <br>
    <p name=""><b>挂靠项目编号：&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
      <input type="text" size="50px" name="thesistitle.thesistitle_projectno">
      &nbsp&nbsp (可选)</b> </p>
    <p name=""><b>挂靠项目名称：&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
      <input type="text" size="50px"  name="thesistitle.Thesistitle_projectname">
      &nbsp&nbsp (可选)</b> </p>
    <div class="col-xs-11" > &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
      <c:choose>
    <c:when test="${state=='A' || state=='C' || state=='F' || state=='H' || state==null}">
      <button type="button" class="btn btn-success btn-sm" onclick="sumbit()" id="submit">
      提交
      </button>
      </c:when>
      <c:otherwise>
         <button type="button" class="btn btn-success btn-sm" disabled="disabled"  id="submit">
      提交
      </button>
<!--       <input type="submit" class="btn btn-success btn-sm" value="提交"/>-->
      </c:otherwise>
      </c:choose>
      &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
      <button type="button" class="btn btn-warning btn-sm">重置</button>
    </div>
  </div>
</div>
</div>
</div>
</form>
<!--修改结束--> 

<!--全局12栅格 规划全局区域图线 结束 row+ col-->
</div>
</div>
<div class="row" style="background-color:#25465d"">
  <p  align="center" style="color:white;background-color:#25465d"><strong>用户单位：</strong>吉林大学珠海学院&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>版权所有：</strong>吉林大学珠海学院计算机科学与技术系</p>
</div>
<!--全局框架开始 conteiner-->
</div>
</body>
</html>
